package sg.edu.ntu.bloch.tictactoe.datasource.player;

import java.util.Set;

import sg.edu.ntu.bloch.tictactoe.engine.Player;

public interface PlayerSource {

	/*
	 * getPlayer will return the Player base on userName//TODO might need to
	 * Guard playerMap for thread safety
	 */
	public Player getPlayer(String name);

	public boolean newPlayer(Player player);

	public Set<String> getAllName();
	
	public boolean unqiueName(String name);

}